<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="cn" class="no-js">
<head>

    <meta charset="utf-8" />

    <title>商城后台</title>

    <meta content="width=device-width, initial-scale=1.0" name="viewport" />

    <meta content="" name="description" />

    <meta content="" name="author" />

    <!-- BEGIN GLOBAL MANDATORY STYLES -->

    <link href="/Public/media/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/style-metro.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/style.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/style-responsive.css" rel="stylesheet" type="text/css"/>

    <link href="/Public/media/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>

    <link href="/Public/media/css/uniform.default.css" rel="stylesheet" type="text/css"/>

    <!-- END GLOBAL MANDATORY STYLES -->

    <link rel="shortcut icon" href="/Public/media/image/favicon.ico" />

</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="page-header-fixed">

<!-- BEGIN HEADER -->

<div class="header navbar navbar-inverse navbar-fixed-top">

    <!-- BEGIN TOP NAVIGATION BAR -->

    <div class="navbar-inner">

        <div class="container-fluid">

            <!-- BEGIN LOGO -->

            <a class="brand" href="index.html">

                <img src="/Public/media/image/logo.png" alt="logo"/>

            </a>

            <!-- END LOGO -->

            <!-- BEGIN RESPONSIVE MENU TOGGLER -->

            <a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">

                <img src="/Public/media/image/menu-toggler.png" alt="" />

            </a>

            <!-- END RESPONSIVE MENU TOGGLER -->

            <!-- BEGIN TOP NAVIGATION MENU -->

            <ul class="nav pull-right">
                <li class="dropdown user">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="username" style="font-size: 16px">您好，<?php echo session('username'); ?></span>
                        <i class="icon-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="divider"></li>
                        <li><a href="<?php echo U('Login/logout');?>"><i class="icon-key"></i> 注销 </a></li>

                    </ul>

                </li>

                <!-- END USER LOGIN DROPDOWN -->

            </ul>

            <!-- END TOP NAVIGATION MENU -->

        </div>

    </div>

    <!-- END TOP NAVIGATION BAR -->

</div>

<!-- END HEADER -->

<!-- BEGIN SIDEBAR -->

<div class="page-sidebar nav-collapse collapse">

    <!-- BEGIN SIDEBAR MENU -->

    <ul class="page-sidebar-menu">
        <li>
            <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
            <div class="sidebar-toggler hidden-phone"></div>

            <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        </li>
        <li>
            <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
            <form class="sidebar-search">
                <div class="input-box">
                    <a href="javascript:;" class="remove"></a>
                </div>

            </form>

            <!-- END RESPONSIVE QUICK SEARCH FORM -->

        </li>

        <li class="start active ">

            <a href="<?php echo U('Index/index');?>">

                <i class="icon-home"></i>

                <span class="title">首页</span>

                <span class="selected"></span>

            </a>

        </li>

        <?php
 $priModel = D('Privilege'); $btns = $priModel->getBtns(); foreach($btns as $k => $v): ?>
        <!--菜单开始-->
        <li class="">
            <a href="javascript:;">

                <i class="icon-bookmark-empty"></i>

                <span class="title"><?php echo $v['pri_name']?></span>

                <span class="arrow "></span>

            </a>
            <ul class="sub-menu">
                <?php foreach($v['children'] as $k1 => $v1): ?>
                <li >
                    <a href="<?php echo U($v1['module_name'].'/'.$v1['controller_name'].'/'.$v1['action_name']); ?>"
                       target="main-frame"><?php echo $v1['pri_name']?></a>
                </li>
                <?php endforeach; ?>
             <!--   <li >
                    <a href="<?php echo U('Brand/lst');?>">品牌列表</a>
                </li>
                <li >
                    <a href="<?php echo U('Category/lst');?>">分类列表</a>
                </li>
                <li >
                    <a href="<?php echo U('Type/lst');?>">类型列表</a>
                </li>-->
            </ul>

        </li>
        <?php endforeach; ?>
        <!--菜单结束-->

        <!--会员模块开始-->
       <!-- <li class="">

            <a href="javascript:;">

                <i class="icon-user"></i>

                <span class="title">会员模块</span>

                <span class="arrow "></span>

            </a>

            <ul class="sub-menu">

                <li >

                    <a href="<?php echo U('Member/lst');?>">会员列表</a>

                </li>

                <li >

                    <a href="login_soft.html">

                        Login Form 2</a>

                </li>

            </ul>

        </li>-->
        <!--会员模块结束-->

        <!--订单模块开始-->
       <!-- <li class="">

            <a href="javascript:;">

                <i class="icon-th"></i>

                <span class="title">订单模块</span>

                <span class="arrow "></span>

            </a>

            <ul class="sub-menu">

                <li >

                    <a href="<?php echo U('Order/lst');?>">订单详情</a>

                </li>

            </ul>

        </li>-->
        <!--订单模块结束-->

        <!--RBAC模块开始-->
       <!-- <li class="">

            <a href="javascript:;">

                <i class="icon-table"></i>

                <span class="title">RBAC</span>

                <span class="arrow "></span>

            </a>

            <ul class="sub-menu">

                <li >

                    <a href="<?php echo U('Privilege/lst');?>">权限列表</a>

                </li>

                <li >

                    <a href="<?php echo U('Role/lst');?>">角色列表</a>

                </li>

                <li >

                    <a href="<?php echo U('Admin/lst');?>">管理员列表</a>

                </li>

            </ul>

        </li>-->
        <!--RBAC模块结束-->

    </ul>

    <!-- END SIDEBAR MENU -->
</div>

<!-- END SIDEBAR -->

<!-- BEGIN CONTAINER -->

<div class="page-container row-fluid">

    <!-- BEGIN PAGE -->

    <div class="page-content">

        <!-- BEGIN PAGE CONTAINER-->

        <div class="container-fluid">

            <!-- BEGIN PAGE HEADER-->

            <div class="row-fluid">

                <div class="span12">

                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->

                    <h3 class="page-title"><?php echo ($_page_title); ?></h3>

                    <ul class="breadcrumb">

                        <li>

                            <i class="icon-home"></i>

                            <a href="<?php echo U('Index/index');?>">首页</a>

                            <i class="icon-angle-right"></i>

                        </li>

                        <li>

                            <a href="#"><?php echo ($_module_name); ?></a>

                            <i class="icon-angle-right"></i>

                        </li>

                        <li><a href="#"><?php echo ($_page_title); ?></a></li>

                    </ul>

                    <!-- END PAGE TITLE & BREADCRUMB-->

                </div>

            </div>

            <!-- END PAGE HEADER-->

            <!-- BEGIN PAGE CONTENT-->

            <div class="row-fluid">

                <div class="span12">

                    <!-- BEGIN EXAMPLE TABLE PORTLET-->

                    <div >

                        <div class="portlet-title">

                            <div class="caption"><i class="icon-edit"></i>订单信息</div>


                        </div>

                        <form method="post" action="" name="listForm" onsubmit="">
                            <div >
                                <table cellpadding="3" cellspacing="1" class="table table-striped table-hover table-bordered dataTable">
                                    <thead style="background: #C5C1AA">
                                    <tr role="row">
                                        <th >订单号</th>
                                        <th >下单时间</th>
                                        <th width="30%">收货人</th>
                                        <th >订单金额</th>
                                        <th >快递单号</th>
                                        <th >订单状态</th>
                                        <th width="10%">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach($data as $k => $v): ?>
                                    <tr class="tron">
                                        <td><?php echo $v['order_sn'];?></td>
                                        <td><?php echo date('Y-m-d H:i:s',$v['addtime']);?></td>
                                        <td>
                                            <p><?php echo $v['shr_name']; ?>&nbsp;&nbsp; &nbsp;&nbsp;TEL:<?php echo $v['shr_tel'];?></p>
                                            <p><?php echo $v['shr_province'];?> <?php echo $v['shr_city'];?> <?php echo $v['shr_area'];?> <?php echo $v['shr_address'];?></p>
                                        </td>
                                        <td>￥<?php echo $v['total_price']; ?>元</td>
                                        <td><?php if($v['post_number']): echo $v['post_number']; else:?>无<?php endif;?></td>
                                        <td>
                                            <?php if($v['order_status'] == '正常'): ?>
                                                <?php if($v['pay_status'] == '是'): ?>
                                                    已付款 - <?php echo $v['post_status']==0 ? '未发货' : ($v['post_status']==1 ? '已发货' : '已签收');?>
                                                <?php else: ?>
                                                    未付款
                                                <?php endif; ?>
                                            <?php else: ?>
                                                关闭
                                            <?php endif; ?>
                                        </td>
                                        <td>
                                            <a class="btn btn-xs btn-primary" href="<?php echo U('edit',array('order_id'=>$v['id'],'p'=>I('get.p')));?>" title="查看">查看</a>
                                            <?php if($v['order_status'] == '关闭'):?>
                                            <a class="btn btn-xs btn-danger" href="<?php echo U('delete',array('id'=>$v['id'],'p'=>I('get.p')));?>" onclick="return confirm('确定要删除吗？');" title="移除">移除</a>
                                            <?php endif;?>
                                        </td>
                                    </tr>
                                    <?php endforeach; ?>
                                    </tbody>
                                </table>
                            </div>
                            <div class="span6">
                                <div class="dataTables_paginate paging_bootstrap pagination">
                                    <ul>
                                        <li><?php echo ($page); ?></li>
                                    </ul>
                                </div>
                            </div>
                        </form>

                    </div>

                    <!-- END EXAMPLE TABLE PORTLET-->

                </div>

            </div>

            <!-- END PAGE CONTENT -->

        </div>

        <!-- END PAGE CONTAINER-->

    </div>

    <!-- END PAGE -->

</div>

<!-- END CONTAINER -->

<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

<!-- BEGIN CORE PLUGINS -->

<script src="/Public/media/js/jquery-1.10.1.min.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>

<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->

<script src="/Public/media/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>

<script src="/Public/media/js/bootstrap.min.js" type="text/javascript"></script>

<!--[if lt IE 9]>

<script src="/Public/media/js/excanvas.min.js"></script>

<script src="/Public/media/js/respond.min.js"></script>

<![endif]-->

<script src="/Public/media/js/jquery.slimscroll.min.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.blockui.min.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.cookie.min.js" type="text/javascript"></script>

<script src="/Public/media/js/jquery.uniform.min.js" type="text/javascript" ></script>

<!-- END CORE PLUGINS -->

<!-- BEGIN PAGE LEVEL PLUGINS -->

<script type="text/javascript" src="/Public/media/js/select2.min.js"></script>

<script type="text/javascript" src="/Public/media/js/jquery.dataTables.js"></script>

<script type="text/javascript" src="/Public/media/js/DT_bootstrap.js"></script>

<!-- END PAGE LEVEL PLUGINS -->

<!-- BEGIN PAGE LEVEL SCRIPTS -->

<script src="/Public/media/js/app.js"></script>

<script src="/Public/media/js/table-editable.js"></script>

<script>

    jQuery(document).ready(function() {

        App.init();

        TableEditable.init();

    });

</script>

</body>

<!-- END BODY -->

</html>

<!--时间插件-->
<link href="/Public/datetimepicker/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="/Public/datetimepicker/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/Public/datetimepicker/datepicker-zh_cn.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="/Public/datetimepicker/time/jquery-ui-timepicker-addon.min.css" />
<script type="text/javascript" src="/Public/datetimepicker/time/jquery-ui-timepicker-addon.min.js"></script>
<script type="text/javascript" src="/Public/datetimepicker/time/i18n/jquery-ui-timepicker-addon-i18n.min.js"></script>
<script>
    // 添加时间插件
    $.timepicker.setDefaults($.timepicker.regional['zh-CN']);  // 设置使用中文

    $("#fa").datetimepicker();
    $("#ta").datetimepicker();
</script>

<!-- 引入行高亮显示 -->
<script type="text/javascript" src="/Public/Admin/Js/tron.js"></script>


<!-- BEGIN FOOTER -->

<div class="footer">

    <div class="footer-inner">

        2013 &copy; Metronic by keenthemes.Collect from <a href="http://www.cssmoban.com/" title="网站模板" target="_blank">网站模板</a> - More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a>

    </div>

    <div class="footer-tools">

			<span class="go-top">

			<i class="icon-angle-up"></i>

			</span>

    </div>

</div>

<!-- END FOOTER -->